home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / drdobbs / c_spec / sources / cpy.c < prev    next >
Text File  |  1986-02-20  |  229b  |  14 lines

  1. char    *cpy( dest, src )
  2. register char    *dest, *src;
  3. {
  4.     /*    Works like strcpy but returns a pointer to the new end
  5.      *    of string (ie. to the null).
  6.      */
  7.  
  8.     while( *src )
  9.         *dest++ = *src++ ;
  10.  
  11.     *dest = 0;
  12.     return dest;
  13. }
  14.